<?php 
//接收ajax.js传递过来的信息
$data = $_POST;
$username = $_POST['username'];
$password = $_POST['password'];
$code = $_POST['code'];
print_r($data);
// json_encode的数据类型返回
echo json_encode($data);
?>